home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / DirectX SDK / DXSDK / samples / Multimedia / VBSamples / DirectSound / AdjustSound / readme.txt < prev    next >
Text File  |  2001-10-10  |  2KB  |  48 lines

  1. //-----------------------------------------------------------------------------
  2. // 
  3. // Sample Name: VB AdjustSound Sample
  4. // 
  5. // Copyright (C) 1999-2001 Microsoft Corporation. All rights reserved.
  6. // 
  7. //-----------------------------------------------------------------------------
  8.  
  9.  
  10. Description
  11. ===========
  12.   AdjustSound sample shows how to load and play a wave file using
  13.   a DirectSound buffer and adjust its focus, frequency, pan, and volume.
  14.   
  15. Path
  16. ====
  17.   Source: DXSDK\Samples\Multimedia\VBSamples\DirectSound\AdjustSound
  18.  
  19.   Executable: DXSDK\Samples\Multimedia\VBSamples\DirectSound\Bin
  20.  
  21. User's Guide
  22. ============
  23.   Load a wave file by clicking Sound File. Select Focus and Buffer Mixing 
  24.   options; note that the various settings are explained under Expected Behavior 
  25.   as you select them. Click Play. If you don't hear any sound, check the Status 
  26.   pane. The application might fail to create the buffer in hardware if this 
  27.   option has been selected. 
  28.  
  29.   By using the sliders you can adjust the frequency, pan, and volume dynamically 
  30.   as the buffer is playing.
  31.  
  32. Programming Notes
  33. =================
  34.   To set the focus of a buffer call DirectSound.CreateSoundBufferFromFile with 
  35.   DSBCAPS_GLOBALFOCUS or DSBCAPS_STICKYFOCUS or neither of these flags. 
  36.     
  37.   To set the memory location of a buffer call DirectSound.CreateSoundBufferFromFile 
  38.   with DSBCAPS_LOCHARDWARE or DSBCAPS_LOCSOFTWARE or neither of these flags. 
  39.     
  40.   To control various aspects of DirectSound buffer:
  41.     To adjust the frequency call DirectSoundSecondaryBuffer.SetFrequency
  42.     To adjust the pan call DirectSoundSecondaryBuffer.SetPan
  43.     To adjust the volume call DirectSoundSecondaryBuffer.SetVolume
  44.     
  45.     
  46.   
  47.   
  48.